home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Wayzata's Best of Shareware PC/Windows 1
/
Wayzata's Best of Shareware for PC-Windows - Release 1 - Wayzata Technology (1993).iso
/
mac
/
ZIPPED
/
DOS
/
TELECOMM
/
DAILY103.ZIP
/
DAILY.SCR
Wrap
Text File
|
1992-12-18
|
7KB
|
250 lines
;======================================================================
; OzCIS script for DAILY CompuServe(tm) Maintenance
; by Prof John J. Couture, Miramar College, San Diego, CA [72621,2326]
; released into the public domain (as if it were worth copyrighting!)
; besides I was bored and needed something to do!
;
; Adapted from Steve Sneed's [70007,3574] script and documentation
; (Steve, OzCIS is such a <NEATO!> program ... Good Job!
;
; Version 1.03 - 16:34 12/18/1992
; This script does not incur any connect charges (I'm cheap!)
; if you're on the standard plan and downloads:
; 1) Daily Ziff News (I'm nosey)
; 2) Daily Compuserve News (It's FREE)
; 3) Billing activity (I'm distrusting)
; 4) Daily weather (maps & script) for California
;
; TO RUN:
; 1. SAVE the script in your OzCIS sub-directory called DAILY.SCR
;
; 2. Select "Online" then "Custom Pass" from the OzCIS main menu
; move the cursor down to DAILY.SCR, press <ENTER> and then sit
; back and enjoy your coffee.
;first, set up an error handler
ONERROR ErrorHandler
CLS
LWrite "--------------------------------------------------------"
LWrite "--- Daily News and Weather ---"
LWrite "--------------------------------------------------------"
LWrite " "
Prompt $1 "Do you want the weekly PC Week news? "
UPCASE $1
Prompt $2 "Do you want ZiffNet News? "
UPCASE $2
Prompt $3 "Do you want the Billing Detail? "
UPCASE $3
Prompt $4 "Do you want the Daily Weather? "
UPCASE $4
if $1 != "Y" jump Tag2
GoSub GETPCWNEWS
Tag2:
if $2 != "Y" jump Tag3
GoSub GETZNTNEWS
Tag3:
if $3 != "Y" jump Tag4
GoSub GetBilling
Tag4:
if $4 != "Y" jump Tag5
GoSub GetWeather
Tag5:
; Now get creative and put something here!
Tag6:
Tag7:
Tag8:
Tag9:
Tag99:
;-------------------------------------------------------------------
; All done, now Logoff
Off
End
;*******************************************************************
ErrorHandler:
Off
Fail
;*******************************************************************
GetWeather:
; Grab the current weather reports for the California region
; and a GIF weather map, displaying the GIF map as it downloads.
;Go to the general WEATHER area...
LWrite "--------------------------------------------------------"
LWrite "--- Processing script to capture weather information ---"
LWrite "--------------------------------------------------------"
; The delay gives the screen a chance to catch up
DELAY 50
GO CIS:WEA-1
;request State Summary (SS) report for California ..
lsend "SS CA"
timeout 30
;open the capture file, in this case the normal CISMail file
capture ON CISMAIL.MES
;if we're on the first loop thru this subroutine, write a fake
;mail msg header so we can find the report
WMH
wait "ID:"
capture OFF
send ^M
wait "choice!"
;now, go to AWM and get maps. First set timeout to 180 secs...
timeout 180
GO AWM
;use the GWM (GetWeatherMap) command to get some weather map GIFs
;the GWM <#> <#> command is only for use in AWM!!!
;get map #3, Satelite photograph...
gwm 3
;get map #7, regional review, for region #6 (southwest)...
gwm 7 6
Return
;*******************************************************************
GetZntNews:
Timeout 30
LWrite "--------------------------------------------------------"
LWrite "--- ZiffNet News ---"
LWrite "--------------------------------------------------------"
; The delay gives the screen a chance to catch up
DELAY 50
GO ZNT:ZNT-1
Wait "!"
; 1=Today on ZiffNet
LSend "1"
Capture ON CISMAIL.MES
;write a fake mail msg header
WMH
Wait "!"
LSend "1,2,3,4,5,6,7,8,9,10"
Wait "!"
Capture OFF
Return
;*******************************************************************
GetPCWNews:
Timeout 30
LWrite "--------------------------------------------------------"
LWrite "--- PC Week News ---"
LWrite "--------------------------------------------------------"
; The delay gives the screen a chance to catch up
DELAY 50
GO ZNT:PCWNEWS
; 1 Top Stories
; 2 Product News and Reviews
; 3 Industry News
; 4 The Week in Review/Opinion
; 5 Spencer F. Katt
; 6 Executives Online Forum (NOT FREE)
; 7 Companies in the News
; 8 PC Week EXTRA! Forum (NOT FREE)
; 9 About PC Week News Briefs
; 10 Download this Week's News
Wait "!"
LSend "10"
; Download PC Week NEWS IN BRIEF
; 1 Full text, ascii format
; 2 Compressed (zipped) binary
Wait "!"
LSend "2"
; PC WEEK EXTRA! SOFTEX
; THIS WEEK'S NEWS is free.
; You will not be charged for connect time during this download.
; Enter M for menu or
; press <CR> to begin transfer!
Wait "!"
Send ^M
DELAY 40
; Send a CR to to the screen to seperate the prompts
LWrite " "
; Pause for about 4 seconds while CIS catches up
; number is in ticks, 18 = 1 second
Delay 100
; Enter file name for your computer:
LSend "PCWNEWS.ZIP"
; *** File Transfer Completed!! ***
Wait "!"
Return
;*******************************************************************
GetBilling:
LWrite "--------------------------------------------------------"
LWrite "--- Billing Information ---"
LWrite "--------------------------------------------------------"
; The delay gives the screen a chance to catch up
DELAY 50
Timeout 180
LSend "GO BILL"
Wait "!"
;select "current info"
LSend "2"
Wait "Choice !"
;select "current charges" and capture to CISMail file
LSend "2"
Capture ON CISMAIL.MES
;write a fake mail msg header
WMH
Wait "!"
Capture OFF
Send ^M
;now ask for billing history info, capture to CISMail file
Wait "Choice !"
LSend "3"
Capture ON CISMAIL.MES
Wait "!"
Capture OFF
Send ^M
;now ask for Activity info, capture to CISMail file
Wait "Choice !"
LSend "4"
Capture ON CISMAIL.MES
Wait "!"
Capture OFF
Send ^M
Wait "!"
;all done!
return